package org.modernTeleport;

import org.bukkit.Bukkit;
import org.bukkit.ChatColor;
import org.bukkit.command.CommandSender;
import org.bukkit.plugin.java.JavaPlugin;

import java.util.ArrayList;
import java.util.List;

public final class ModernTeleport extends JavaPlugin {
    final List<TeleportRequest> Requests = new ArrayList<>();
    final List<TeleportRequest> DeadRequests = new ArrayList<>();
    final List<TeleportRequest> NewRequests = new ArrayList<>();

    @Override
    public void onEnable() {
        SayToConsole("插件已启动！");
    }

    @Override
    public void onDisable() {
        SayToConsole("插件已关闭！");
    }

    public void SayToConsole(String text){
        /**
         * 向控制台发送已格式化的内容.
         */
        CommandSender consoleSender = Bukkit.getConsoleSender();
        consoleSender.sendMessage(ChatColor.YELLOW+"[MT]"+ChatColor.GOLD+text);
    }
}
